package com.example.cloudcashierpos.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;

import java.util.Date;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class corecmsfoodordering {
    @Id
    private long id;

    /**
     * 序号
     */
    private Integer rowId;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 菜品Id
     */
    private Long foodId;

    /**
     * 规格Id
     */
    private Long foodSpecId;

    /**
     * 菜品编码
     */
    private String number;

    /**
     * 菜品名称
     */
    private String name;

    /**
     * 规格名称
     */
    private String specName;

    /**
     * 数量
     */
    private double quantity;

    /**
     * 原价
     */
    private double price;

    /**
     * 实价
     */
    private double realPrice;

    /**
     * 折扣
     */
    private double discount;

    /**
     * 原金额
     */
    private double amount;

    /**
     * 实收金额
     */
    private double realAmount;

    /**
     * 做法金额
     */
    private double taskAmount;

    /**
     * 加料金额
     */
    private double feedAmount;

    /**
     * 源价，保存折扣，赠送等前的realPrice价
     */
    private double sourcePrice;

    /**
     * 小计
     */
    private double allAmount;

    /**
     * 菜品类型(1.普通菜；2.套菜；3.线下临时菜；4.临时套菜，5.套菜内菜品,6分组主菜,7分组配菜)--corecmsfood.type
     */
    private int itemType;

    /**
     * 菜品数(1菜品，0套菜)
     * 因为计算菜品数，所以不能有其它数值
     */
    private int itemCount;

    /**
     * 销售类型(1正常，0赠送,-1退货，2打折)
     */
    private int dataType;

    /**
     * 叫起标记(0默认，1叫起，2起菜，3划菜)
     */
    private int callType = 0;

    /**
     * 打包标记
     */
    private String parcel;

    /**
     * 做法名称
     */
    private String taskTitle;

    /**
     * 加料名称
     */
    private String feedTitle;

    /**
     * 菜品状态(0待下单,1已下单)
     */
    private Integer itemStatus;

    /**
     * 餐套主菜Id
     */
    private Long foodPackId;

    /**
     * 原Id,corecmsfoodordering.sourceId=corecmsfoodordering.sourceId)
     */
    private Long sourceId;

    /**
     * 餐套主菜名称
     */
    private String foodPackName;

    /**
     * 备注
     */
    private String remark;

    /**
     * 菜品分类Id
     */
    private Long foodTypeId;

    /**
     * 批次Id
     */
    private Long batchId;

    /**
     * 最低折扣
     */
    private double minDiscount = 0;

    /**
     * 套菜内品执行价格
     */
    private double setPrice = 0;

    /**
     * 套餐数量
     */
    private double foodPackQuantity;

    /**
     * 下单人Id
     */
    private Integer billerId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 免打厨房单
     */
    private boolean unPrint = false;

    @Generated(hash = 362154400)
    public corecmsfoodordering(long id, Integer rowId, Long orderId, Long foodId,
            Long foodSpecId, String number, String name, String specName,
            double quantity, double price, double realPrice, double discount,
            double amount, double realAmount, double taskAmount, double feedAmount,
            double sourcePrice, double allAmount, int itemType, int itemCount,
            int dataType, int callType, String parcel, String taskTitle,
            String feedTitle, Integer itemStatus, Long foodPackId, Long sourceId,
            String foodPackName, String remark, Long foodTypeId, Long batchId,
            double minDiscount, double setPrice, double foodPackQuantity,
            Integer billerId, Date createTime, boolean unPrint) {
        this.id = id;
        this.rowId = rowId;
        this.orderId = orderId;
        this.foodId = foodId;
        this.foodSpecId = foodSpecId;
        this.number = number;
        this.name = name;
        this.specName = specName;
        this.quantity = quantity;
        this.price = price;
        this.realPrice = realPrice;
        this.discount = discount;
        this.amount = amount;
        this.realAmount = realAmount;
        this.taskAmount = taskAmount;
        this.feedAmount = feedAmount;
        this.sourcePrice = sourcePrice;
        this.allAmount = allAmount;
        this.itemType = itemType;
        this.itemCount = itemCount;
        this.dataType = dataType;
        this.callType = callType;
        this.parcel = parcel;
        this.taskTitle = taskTitle;
        this.feedTitle = feedTitle;
        this.itemStatus = itemStatus;
        this.foodPackId = foodPackId;
        this.sourceId = sourceId;
        this.foodPackName = foodPackName;
        this.remark = remark;
        this.foodTypeId = foodTypeId;
        this.batchId = batchId;
        this.minDiscount = minDiscount;
        this.setPrice = setPrice;
        this.foodPackQuantity = foodPackQuantity;
        this.billerId = billerId;
        this.createTime = createTime;
        this.unPrint = unPrint;
    }

    @Generated(hash = 1228483616)
    public corecmsfoodordering() {
    }

    public long getId() {
        return this.id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Integer getRowId() {
        return this.rowId;
    }

    public void setRowId(Integer rowId) {
        this.rowId = rowId;
    }

    public Long getOrderId() {
        return this.orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getFoodId() {
        return this.foodId;
    }

    public void setFoodId(Long foodId) {
        this.foodId = foodId;
    }

    public Long getFoodSpecId() {
        return this.foodSpecId;
    }

    public void setFoodSpecId(Long foodSpecId) {
        this.foodSpecId = foodSpecId;
    }

    public String getNumber() {
        return this.number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSpecName() {
        return this.specName;
    }

    public void setSpecName(String specName) {
        this.specName = specName;
    }

    public double getQuantity() {
        return this.quantity;
    }

    public void setQuantity(double quantity) {
        this.quantity = quantity;
    }

    public double getPrice() {
        return this.price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getRealPrice() {
        return this.realPrice;
    }

    public void setRealPrice(double realPrice) {
        this.realPrice = realPrice;
    }

    public double getDiscount() {
        return this.discount;
    }

    public void setDiscount(double discount) {
        this.discount = discount;
    }

    public double getAmount() {
        return this.amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public double getRealAmount() {
        return this.realAmount;
    }

    public void setRealAmount(double realAmount) {
        this.realAmount = realAmount;
    }

    public double getTaskAmount() {
        return this.taskAmount;
    }

    public void setTaskAmount(double taskAmount) {
        this.taskAmount = taskAmount;
    }

    public double getFeedAmount() {
        return this.feedAmount;
    }

    public void setFeedAmount(double feedAmount) {
        this.feedAmount = feedAmount;
    }

    public double getSourcePrice() {
        return this.sourcePrice;
    }

    public void setSourcePrice(double sourcePrice) {
        this.sourcePrice = sourcePrice;
    }

    public double getAllAmount() {
        return this.allAmount;
    }

    public void setAllAmount(double allAmount) {
        this.allAmount = allAmount;
    }

    public int getItemType() {
        return this.itemType;
    }

    public void setItemType(int itemType) {
        this.itemType = itemType;
    }

    public int getItemCount() {
        return this.itemCount;
    }

    public void setItemCount(int itemCount) {
        this.itemCount = itemCount;
    }

    public int getDataType() {
        return this.dataType;
    }

    public void setDataType(int dataType) {
        this.dataType = dataType;
    }

    public int getCallType() {
        return this.callType;
    }

    public void setCallType(int callType) {
        this.callType = callType;
    }

    public String getParcel() {
        return this.parcel;
    }

    public void setParcel(String parcel) {
        this.parcel = parcel;
    }

    public String getTaskTitle() {
        return this.taskTitle;
    }

    public void setTaskTitle(String taskTitle) {
        this.taskTitle = taskTitle;
    }

    public String getFeedTitle() {
        return this.feedTitle;
    }

    public void setFeedTitle(String feedTitle) {
        this.feedTitle = feedTitle;
    }

    public Integer getItemStatus() {
        return this.itemStatus;
    }

    public void setItemStatus(Integer itemStatus) {
        this.itemStatus = itemStatus;
    }

    public Long getFoodPackId() {
        return this.foodPackId;
    }

    public void setFoodPackId(Long foodPackId) {
        this.foodPackId = foodPackId;
    }

    public Long getSourceId() {
        return this.sourceId;
    }

    public void setSourceId(Long sourceId) {
        this.sourceId = sourceId;
    }

    public String getFoodPackName() {
        return this.foodPackName;
    }

    public void setFoodPackName(String foodPackName) {
        this.foodPackName = foodPackName;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getFoodTypeId() {
        return this.foodTypeId;
    }

    public void setFoodTypeId(Long foodTypeId) {
        this.foodTypeId = foodTypeId;
    }

    public Long getBatchId() {
        return this.batchId;
    }

    public void setBatchId(Long batchId) {
        this.batchId = batchId;
    }

    public double getMinDiscount() {
        return this.minDiscount;
    }

    public void setMinDiscount(double minDiscount) {
        this.minDiscount = minDiscount;
    }

    public double getSetPrice() {
        return this.setPrice;
    }

    public void setSetPrice(double setPrice) {
        this.setPrice = setPrice;
    }

    public double getFoodPackQuantity() {
        return this.foodPackQuantity;
    }

    public void setFoodPackQuantity(double foodPackQuantity) {
        this.foodPackQuantity = foodPackQuantity;
    }

    public Integer getBillerId() {
        return this.billerId;
    }

    public void setBillerId(Integer billerId) {
        this.billerId = billerId;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public boolean getUnPrint() {
        return this.unPrint;
    }

    public void setUnPrint(boolean unPrint) {
        this.unPrint = unPrint;
    }
}
